From: Eli Zaretskii Date: Thu, 25 Nov 2010 18:38:09 +0000 (+0200) Subject: Fix bug #7474 with cursor positioning in overlay strings. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5533 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ee548aaae755d02a12533e09e224bc41f65e6db1;p=emacs.git Fix bug #7474 with cursor positioning in overlay strings. xdisp.c (set_cursor_from_row): Don't forget to consider the `cursor' property of the first character in overlay strings. --- diff --git a/src/ChangeLog b/src/ChangeLog index 8eed1d4d735..d29f275e4aa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2010-11-25 Eli Zaretskii + + * xdisp.c (set_cursor_from_row): Don't forget to consider the + `cursor' property of the first character in overlay strings. + (Bug#7474) + 2010-11-24 Jan Djärv * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask) diff --git a/src/xdisp.c b/src/xdisp.c index b2d81cb60e9..fd80d7a0208 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12943,7 +12943,7 @@ set_cursor_from_row (struct window *w, struct glyph_row *row, if (tem) cursor = glyph; - for (glyph += incr; + for ( ; (row->reversed_p ? glyph > stop : glyph < stop) && EQ (glyph->object, str); glyph += incr)